/*
 * $Id: CfgRequestSchedule.java,v 1.4 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * Created Wed Jan 14 22:14:13 CST 2009 by MyEclipse Hibernate Tool.
 */ 
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the 'CFG_REQUEST_SCHEDULE' table. 
 * This class may be customized as it is never re-generated 
 * after being created.
 */
public class CfgRequestSchedule
    extends AbstractCfgRequestSchedule
    implements Serializable
{
    /**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -4851050042946129514L;

	/**
     * Simple constructor of CfgRequestSchedule instances.
     */
    public CfgRequestSchedule()
    {
    }

    /**
     * Constructor of CfgRequestSchedule instances given a simple primary key.
     * @param requestScheduleId
     */
    public CfgRequestSchedule(java.lang.Long requestScheduleId)
    {
        super(requestScheduleId);
    }

    /* Add customized code below */
    public String toString() {
    	StringBuffer text = new StringBuffer();
    	text.append("Id: " + this.getRequestScheduleId());
    	text.append(",System Id: " + this.getSystemId());
    	if(this.getCfgRequestType() != null) {
    		text.append(",Request Type: " + this.getCfgRequestType().getRequestTypeName());
    	}
    	text.append(",Last Time Run: " + this.getLastTimeRun());
    	text.append(",Run Interval In Hour: " + this.getRunIntervalInHr().toString());
    	return text.toString();
    }
}
